package com.nku.mason.scm.dao;

import java.util.List;

import com.nku.mason.scm.vo.PageBean;

public interface BaseMapper<T> {
	//添加实体信息到表中
	public int insert(T entity);

	//更新表中实体信息
	public int update(T entity);
	
	//删除表中实体信息
	public int delete(T entity);
	//根据主键批量删除数据
	public int deleteByPks(String[] pks);
	
	//查找实体
	public T select(T entity);
	
	//分页查询总记录数
	public int selectTotalCount(PageBean<T> pageBean);
	public int selectTotalCountDys(PageBean<T> pageBean);
	
	//分页查询结果集
	public List<T> selectPageList(PageBean<T> pageBean);
	public List<T> selectPageListDys(PageBean<T> pageBean);
	
}
